package com.gcb.service.impl;


import com.gcb.domain.vo.PortVO;
import com.gcb.mapper.PortMapper;
import com.gcb.service.IPortService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PortServiceImpl implements IPortService {

    @Resource
    private PortMapper portMapper;

    @Override
    public List<PortVO> selectAll() {
        return portMapper.selectAll();
    }

    @Override
    public String getNameByCode(String code) {
        return portMapper.selectNameByCode(code);
    }

    @Override
    public List<String> selectNameByCity(String city) {
        return portMapper.selectNameByCity(city);
    }

}
